package com.neusoft.customerserver.dto;

import com.neusoft.customerserver.entity.CustomerCustomer;

public class RelatedCustomer {
    private Integer id;
    private Integer relativeCustomerId1;
    private Integer relativeCustomerId2;
    private String relativeCustomerName;
    private Integer customerRelationId;
    private String customerRelationName;

    public RelatedCustomer(CustomerCustomer cusCus) {
        this.id = cusCus.getId();
        this.relativeCustomerId1 = cusCus.getRelativeCustomerId1();
        this.relativeCustomerId2 = cusCus.getRelativeCustomerId2();
        this.customerRelationId = cusCus.getCustomerRelationId();
        this.customerRelationName = cusCus.getCustomerRelationName();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRelativeCustomerId1() {
        return relativeCustomerId1;
    }

    public void setRelativeCustomerId1(Integer relativeCustomerId1) {
        this.relativeCustomerId1 = relativeCustomerId1;
    }

    public Integer getRelativeCustomerId2() {
        return relativeCustomerId2;
    }

    public void setRelativeCustomerId2(Integer relativeCustomerId2) {
        this.relativeCustomerId2 = relativeCustomerId2;
    }

    public String getRelativeCustomerName() {
        return relativeCustomerName;
    }

    public void setRelativeCustomerName(String relativeCustomerName) {
        this.relativeCustomerName = relativeCustomerName;
    }

    public Integer getCustomerRelationId() {
        return customerRelationId;
    }

    public void setCustomerRelationId(Integer customerRelationId) {
        this.customerRelationId = customerRelationId;
    }

    public String getCustomerRelationName() {
        return customerRelationName;
    }

    public void setCustomerRelationName(String customerRelationName) {
        this.customerRelationName = customerRelationName;
    }

    @Override
    public String toString() {
        return "RelatedCustomer{" +
                "id=" + id +
                ", relativeCustomerId1=" + relativeCustomerId1 +
                ", relativeCustomerId2=" + relativeCustomerId2 +
                ", relativeCustomerName='" + relativeCustomerName + '\'' +
                ", customerRelationId=" + customerRelationId +
                ", customerRelationName='" + customerRelationName + '\'' +
                '}';
    }
}
